<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="canvas" width="1000" height="800"></canvas>
  <script>
    /** @type {HTMLCanvasElement} */
     var canvas=document.querySelector("#canvas")
    var ctx=canvas.getContext("2d")
    ctx.beginPath()
    ctx.shadowOffsetX=30
    // ctx.shadowOffsetY=10
    ctx.shadowBlur=10
    ctx.shadowColor="black"
    ctx.arc(100,100,50,0,Math.PI*2)
    ctx.fill()
    ctx.closePath()
  </script>
</body>
</html>